#include("./_inc/_layout.html")
#@layout("Jboot Fly 首页", null,null,"jie")
#define content()

#include("./_inc/_navigation.html",cid='')
<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">

            #include("./_inc/_top_posts.html",title = "置顶",level = 3)

            <div class="fly-panel" style="margin-bottom: 0;">

                <div class="fly-panel-title fly-filter">
                    <a href="/" class="layui-this">综合</a>
                    <span class="fly-mid"></span>
                    <a href="/post/all?status=0">未结</a>
                    <span class="fly-mid"></span>
                    <a href="/post/all?status=9">已结</a>
                    <span class="fly-mid"></span>
                    <a href="/post/all?r=1">精华</a>
          </span>
                </div>

                <ul class="fly-list">
                    #for(post : pageData.list)
                    <li>
                        <a href="/user/#(post.user.id)" class="fly-avatar">
                            <img src="#(post.user.avatar)"
                                 alt="#(post.user.nickname)">
                        </a>
                        <h2>
                            <a class="layui-badge">#(post.category.name)</a>
                            <a href="/post/#(post.id)">#(post.title)</a>
                        </h2>
                        <div class="fly-list-info">
                            <a href="/user/#(post.user.id)" link>
                                <cite>#(post.user.nickname)</cite>
                                <!--
                                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                                <i class="layui-badge fly-badge-vip">VIP3</i>
                                -->
                            </a>

                            <span class="fly-list-kiss layui-hide-xs" title="悬赏元宝"><i class="layui-icon" style="color: #FF7200;font-size: 14px;">&#xe62b;</i>  #(post.pay_point)</span>
                            <span>#date(post.created,"yyyy-MM-dd")</span>
                            #if(post.isFinished())
                            <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                            #end
                            <span class="fly-list-nums">
                                <i class="iconfont icon-pinglun1" title="回答"></i> #(post.comment_count)
                            </span>
                        </div>
                        <div class="fly-list-badge">
                            #if(post.isRecommend())
                            <span class="layui-badge layui-bg-red">精帖</span>
                            #end
                        </div>
                    </li>
                    #end
                </ul>

                #if(pageData.totalPage > 1)
                <div style="text-align: center">
                    <div class="laypage-main">
                        <a href="/page/2" class="laypage-next">下一页</a>
                    </div>
                </div>
                #end
            </div>
        </div>
        <div class="layui-col-md4">



            #include("./_inc/_signin_panel.html")
            #include("./_inc/_recommend.html")
            #include("./_inc/_hot_posts.html")
            #include("./_inc/_links.html")


        </div>
    </div>
</div>
#end